﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NLayersExample.Web.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>NLayers Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <label style="font-family:Calibri;font-size:xx-large;color:Navy">NLayers Example</label><br /><br />
    <label style="font-family:Calibri;font-size:medium;color:Navy">For latest version of NLayers please visit: <a href="http://nlayers.codeplex.com">NLayers CodePlex</a></label><br />
    <label style="font-family:Calibri;font-size:medium;color:Navy">This solution provides an example for the NLayers Architecture and Template</label><br />
    <label style="font-family:Calibri;font-size:medium;color:Navy">Please change the connection string in web.config file to the right sql server instance and database.</label><br />
    <label style="font-family:Calibri;font-size:medium;color:Navy">You need to run the <b>Database.sql</b> from web project to create necessary tables.</label><br /><br />
    <label style="font-family:Calibri;font-size:medium;color:Navy">You can click on the buttons below to execute the operation.  Please see the button click handler for the code.<br />
        <asp:Label ID="MessageLabel" runat="server" ForeColor="Red"></asp:Label>
        <br />
        </label>
        <asp:Button ID="GetAllButton" runat="server" Height="35px" 
            onclick="GetAllButton_Click" 
            Text="Refresh (Get All Entity from SampleCustomer)" Width="305px" />
        <br />
        <asp:GridView ID="grid" runat="server">
        </asp:GridView>
        <br />
        <asp:Button ID="InsertButton" runat="server" Height="35px" 
            onclick="InsertButton_Click" Text="Insert New SampleCustomer Entity" 
            Width="305px" />
    <label style="font-family:Calibri;font-size:medium;color:Navy">
        <asp:Label ID="MessageLabel0" runat="server" ForeColor="Green">Please Refresh after click</asp:Label>
        </label>
        <br />
        <asp:Button ID="UpdateButton" runat="server" Height="35px" 
            onclick="UpdateButton_Click" Text="Update previous SampleCustomer Entity" 
            Width="305px" />
    <label style="font-family:Calibri;font-size:medium;color:Navy">
        <asp:Label ID="MessageLabel1" runat="server" ForeColor="Green">Please Refresh after click</asp:Label>
        </label>
        <br />
        <asp:Button ID="DeleteButton" runat="server" Height="35px" 
            onclick="DeleteButton_Click" Text="Delete previous SampleCustomer Entity" 
            Width="305px" />
    <label style="font-family:Calibri;font-size:medium;color:Navy">
        <asp:Label ID="MessageLabel2" runat="server" ForeColor="Green">Please Refresh after click</asp:Label>
        <br />
        <br />
        <asp:Button ID="DisconnectedButton" runat="server" Height="35px" 
            onclick="DisconnectedButton_Click" Text="Disconnected Insert and Update" 
            Width="305px" />
        </label><br />

    </div>
    </form>
</body>
</html>
